import request from '../utils/request.js'
// 获取车系列表
export const carList = (id) => {
  id=id?id:''
  return request.get('/car/list?id='+id)
}
// 获取车详情
export const carDetails = (query) => {
  return request.get( '/car/' + query
    )
}

// 车型分类详情
export const carCateDetails = (data) => {
  return request.get('/car/category/' + data.id
  )
}

// 获取所有车系和车
export const cargetall = (query) => {
  return request.get('/car/getall'
  )
}

// 预约试驾
export const bookcaradd = (data) => {
  return request.post( '/bookcar/add',
    data)
}

// 金融计算器
export const getfinancebank = (query) => {
  return request.get('/getfinancebank'
  )
}

// 金融计算器车型获取
export const getFinanceAll = (query) => {
  return request.get('/car/getFinanceAll'
  )
}